
public class OverflowUnderflow {

	public static void main(String[] args) {
		byte x;
		short y;
		
		x = Byte.MAX_VALUE;
		System.out.println("Before of byte x = " + x);
		x++;
		System.out.println("After of byte x++ = " + x);

		x = Byte.MIN_VALUE;
		System.out.println("Before of byte x = " + x);
		x--;
		System.out.println("After of byte x-- = " + x);

	}

}
